A set represents a collection of (possibly heterogeneous) objects – documents, blocks, links, scripts or other sets. Sets are another interesting component of WEBSs, and are especially useful in combination with scripts.
Let's look at an example.
1. Choose the Execute Other Script command from the Script menu, select the script named "Open DemoSet" and click the Execute button:
Several documents are opened automatically.
2. Choose the Execute Other Script command from the Script menu, select the script named "Close DemoSet" and click the Execute button:
The same group of documents are closed.
If you look at these scripts in the script browser (they appear as "Open DemoSet" and "Close DemoSet" in the Unbound Scripts category of the pop-up menu), you see that they open resp. close all the documents that belong to a set named "DemoSet".
In step 3, a dialog box will appear, and you will no longer be able to read this text. So you should read step 3 entirely before actually testing it. At any time, you can click the Cancel button to dismiss the dialog and discard any changes you have made.
3. To access the facilities provided by WEBSs for creating and editing sets, choose the Edit Sets command from the WEBSs menu. A list with all the existing sets appear. You can create and edit sets, with the New and Edit buttons (If you have identified yourself as a reader, you cannot modify the sets that have a read-only icon, and the Edit button is replaced by a View button). The next dialog will show all the objects in the set, and those not in the set. Test it by selecting the set "DemoSet" and clicking the Edit (View) button or creating a new set with the New button.
As you see, you can create sets to regroup objects, and use them in scripts. Note also in particular that a script can be attached to all the objects in a specific set.
Now use the "Next Node" command of the Browser menu to continue this tutorial with document "Seventh".